home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickTime / QuickTime 3 Interfaces & Libs / QTDevWin / CIncludes / Scrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-21  |  2.3 KB  |  108 lines  |  [TEXT/dosa]

  1. /*
  2.      File:        Scrap.h
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 3.0
  8.  
  9.      Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __SCRAP__
  19. #define __SCRAP__
  20.  
  21. #ifndef __MACTYPES__
  22. #include <MacTypes.h>
  23. #endif
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=mac68k
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47. /*
  48.   _________________________________________________________________________________________________________
  49.    • CLASSIC SCRAP MANAGER API
  50.   _________________________________________________________________________________________________________
  51. */
  52.  
  53.  
  54. struct ScrapStuff {
  55.     SInt32                             scrapSize;
  56.     Handle                             scrapHandle;
  57.     SInt16                             scrapCount;
  58.     SInt16                             scrapState;
  59.     StringPtr                         scrapName;
  60. };
  61. typedef struct ScrapStuff                ScrapStuff;
  62.  
  63. typedef ScrapStuff *                    PScrapStuff;
  64. typedef ScrapStuff *                    ScrapStuffPtr;
  65. EXTERN_API( ScrapStuffPtr )
  66. InfoScrap                        (void)                                                        ONEWORDINLINE(0xA9F9);
  67.  
  68. EXTERN_API( SInt32 )
  69. UnloadScrap                        (void)                                                        ONEWORDINLINE(0xA9FA);
  70.  
  71. EXTERN_API( SInt32 )
  72. LoadScrap                        (void)                                                        ONEWORDINLINE(0xA9FB);
  73.  
  74. EXTERN_API( SInt32 )
  75. GetScrap                        (Handle                 hDest,
  76.                                  ResType                 theType,
  77.                                  SInt32 *                offset)                                ONEWORDINLINE(0xA9FD);
  78.  
  79. EXTERN_API( SInt32 )
  80. ZeroScrap                        (void)                                                        ONEWORDINLINE(0xA9FC);
  81.  
  82. EXTERN_API( SInt32 )
  83. PutScrap                        (SInt32                 length,
  84.                                  ResType                 theType,
  85.                                  const void *            source)                                ONEWORDINLINE(0xA9FE);
  86.  
  87.  
  88. #if PRAGMA_STRUCT_ALIGN
  89.     #pragma options align=reset
  90. #elif PRAGMA_STRUCT_PACKPUSH
  91.     #pragma pack(pop)
  92. #elif PRAGMA_STRUCT_PACK
  93.     #pragma pack()
  94. #endif
  95.  
  96. #ifdef PRAGMA_IMPORT_OFF
  97. #pragma import off
  98. #elif PRAGMA_IMPORT
  99. #pragma import reset
  100. #endif
  101.  
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105.  
  106. #endif /* __SCRAP__ */
  107.  
  108.